<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
  <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="js/vue.js"></script>
</head>
<body>

fg
<input type="file" ref="myfile">
<el-button @click="importData" type="success" size="mini" icon="el-icon-upload2">导入数据
</el-button>
<script>
  importData(){
    let myfile = this.$refs.myfile;
    let files = myfile.files;
    let file = files[0];
    let formData = new FormData();
    formData.append("file", file);
    // this.uploadFileRequest("/system/basic/jl/import",formData).then(resp=>{
    //   if (resp) {
    //     console.log(resp);
    //   }
    // })
  }
</script>
</body>
</html>